﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FS0103.aspx.cs" Inherits="web_CategoryMS.View.G01.FS0103" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
       <style type="text/css">
    .button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    margin: 4px 2px;
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    cursor: pointer;
    padding: 0px 17px;
}
/*button1 检索按钮*/

.button1 {
    background-color: white; 
    color: black; 
    
    border: 2px solid #4CAF50;
    Width: 70px;
    height: 24px;
   
}

.button1:hover {
    background-color: #4CAF50;
    color: white;
}
/*button2 全选按钮*/
.button2 {
    background-color: white; 
    color: black; 
    border: 2px solid #008CBA;
}

.button2:hover {
    background-color: #008CBA;
    color: white;
}
/*button3 删除按钮*/
.button3 {
    background-color: white; 
    color: black; 
    border: 2px solid #f44336;
}

.button3:hover {
    background-color: #f44336;
    color: white;
}
/*
.button5 {
    background-color: white;
    color: black;
    border: 2px solid #e7e7e7;
}

.button5:hover {background-color: #e7e7e7;}
*/

/*button4 新增按钮*/
.button4 {
    background-color: white;
    color: black;
    border: 2px solid #555555;
}

.button4:hover {
    background-color: #555555;
    color: white;
}
/*button5 修改按钮*/
.button5 {
    background-color: white;
    color: black;
    border: 2px solid #8A2BE2;
}

.button5:hover {
    background-color: #8A2BE2;
    color: white;
}


    </style>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td>
                    <!--检索栏-->
                    <table width="100%" border="0">
                        <tr style="width:100%">
                            <td>
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
                                    <ContentTemplate>
                                        <asp:Label ID="Label8" runat="server" Text="需求种类："></asp:Label>
                                        <asp:DropDownList runat="server" ID="ddlCategory" Width="100px" Height="23px"></asp:DropDownList>
                                        <asp:Label ID="Label1" runat="server" Text="需求编号："></asp:Label>
                                        <asp:TextBox ID="txtRequirementNo" runat="server" Width="112px"></asp:TextBox>
                                        <asp:Button ID="btnSearch" runat="server" class="button button1" Text="检索" Width="70px" OnClick="btnSearch_Click"/>
                                        <asp:Button ID="btnAll" runat="server" Text="全选" Width="70px" class="button button2" OnClick="btnAll_Click"/>
                                        <asp:Button ID="btnNew" runat="server" Text="新增" Width="70px" class="button button4" OnClientClick="return OpenNew();"/>
                                        <asp:Button ID="btnNew_Hid" runat="server" Text="新增" Width="70px" class="button button4" style="display:none" OnClick="btnNew_Hid_Click"/>
                                        <asp:Button ID="btnEdit" runat="server" Text="修改" Width="70px" class="button button5" OnClick="btnEdit_Click"/>
                                        <asp:Button ID="btnDelete" runat="server" Text="删除" Width="70px" class="button button3" OnClick="btnDelete_Click"/>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                    </table>
                    <!--内容-->
                    <table width="100%" border="0">
                        <tr style="width:100%">
                            <td>
                                <div id="divFM" style="z-index: 1; left: 1px; overflow-x: scroll; overflow-y: scroll; position: relative; border: 1px solid #808080; top: 1px; width: 100%">
                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                        <ContentTemplate>
                                            <asp:GridView runat="server" ID="dgv" Width="100%" AutoGenerateColumns="False" OnRowDataBound="dgv_RowDataBound">
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="ChkItem" runat="server" ToolTip="选择数据" />
                                                        </ItemTemplate>
                                                        <ItemStyle Width="100px" HorizontalAlign="Center" />
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="iAutoID">
                                                        <HeaderStyle CssClass="hidden"/>
                                                        <ItemStyle CssClass="hidden"/>
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="vcRequirementNo" HeaderText="需求编号">
                                                        <ItemStyle Width="20%" />
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="vcCategory" HeaderText="需求种类">
                                                        <ItemStyle Width="20%" />
                                                    </asp:BoundField>
                                                    <asp:ButtonField DataTextField="vcRequirementName" ItemStyle-ForeColor="Blue" HeaderText="需求名称"
                                                        ItemStyle-Width="20%" ButtonType="Link" CommandName="lookImage" />
                                                    <asp:BoundField DataField="vcRequirementDescription" HeaderText="需求说明">
                                                        <ItemStyle Width="40%" />
                                                    </asp:BoundField>
                                                </Columns>
                                            </asp:GridView>
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click" />
                                            <asp:AsyncPostBackTrigger ControlID="btnNew_Hid" EventName="Click" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
    <script type="text/javascript" src="../../JavaScript/dialog.js"></script>
    <script type="text/javascript">
        document.getElementById('divFM').style.height = document.documentElement.clientHeight - 60 + "px";
        function OpenNew() {
            openNew('FS0103_Sub.aspx', '_blank', 'dialogWidth=150px;dialogHeight=450px;help=no;status=no;location=no;');
        }
        function recall() {
            document.getElementById("btnNew_Hid").click();
        }
        function OpenImage(value) {
            openNew('../G99/FS9901.aspx?iAutoID=' + value, '_blank', 'dialogWidth=500px;dialogHeight=500px;help=no;status=no;location=no;');
        }
    </script>
    <style type="text/css">
    .hidden {
        display: none;
    }
    </style>
</body>
</html>
